﻿typedef struct{
	unsigned int weight;
	unsigned int parent, lchild, rchild;
}	HTNode;

typedef struct{
	HTNode * head;
}	HuffmanTree;

char ** HuffmanCoding(HuffmanTree *HT, int *w, int n);
void select(HuffmanTree *HT, int c,int *a,int *b);
int * count(char *a,int n,int m,char b[]);
void huffCode(int *c,int n,int m);
